package com.yuantu.judiciary.serviceimpl;

import com.yuantu.judiciary.dao.ISysOperLogDao;
import com.yuantu.judiciary.model.domain.SysOperLogDO;
import com.yuantu.judiciary.service.ISysOperLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 操作日志
 *
 * @author syw
 * @since 2023-08-15
 **/
@Service
@RequiredArgsConstructor
public class SysOperLogServiceImpl implements ISysOperLogService {

    private final ISysOperLogDao sysOperLogDao;

    @Override
    public Boolean addOperLog(SysOperLogDO operLog) {
        return sysOperLogDao.save(operLog).getId() > 0;
    }

}
